package com.ming.demo.service.impl;

import com.ming.demo.mapper.ImageMapper;
import com.ming.demo.model.Image;
import com.ming.demo.service.ImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImageServiceImpl implements ImageService {
    @Autowired
    private ImageMapper imageMapper;

    @Override
    public List<Image> findAllImage() {
        return imageMapper.getImages();
    }
}
